package com.lzy.cloud.member.service;

import com.lzy.cloud.member.dtos.MemberUserDto;

import java.util.List;

/**
 * Created by WIN7 on 2018/5/30.
 */
public interface MemberUserService {

    /**
     * 新增会员
     * @param memberUserDto
     * @return
     */
    Long addMemberUser(MemberUserDto memberUserDto);

    /**
     * 根据条件更新会员
     * @param memberUserDto
     * @return
     */
    Boolean updateMemberUser(MemberUserDto memberUserDto);

    /**
     * 根据会员id查询
     * @param memberId
     * @return
     */
    MemberUserDto selectByMemberId(Long memberId);

    /**
     * 根据条件查询
     * @param memberUserDto
     * @return
     */
    List<MemberUserDto> selectList(MemberUserDto memberUserDto);

    /**
     * 解除deviceToken占用
     *
     * @param deviceToken
     * @return
     */
    Integer releaseTokenOccupancy(String deviceToken);
}
